package FrameN;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import net.miginfocom.swing.MigLayout;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JComboBox;
import javax.swing.JButton;
import javax.swing.SwingConstants;

public class FNHangHoa extends JFrame {

	private JPanel contentPane;
	private JTextField textField;
	private JButton btnNewButton;
	private JButton btnNewButton_1;
	private JComboBox comboBox_1;
	private JTextField textField_1;
	private JLabel lblNewLabel;
	private JTextField textField_2;
	private JLabel lblGiMuaVo;
	private JLabel lblGiBnRa;
	private JTextField textField_3;
	private JTextField textField_4;
	private JLabel lblNewLabel_1;
	private JLabel lblNewLabel_2;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					FNHangHoa frame = new FNHangHoa();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public FNHangHoa() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 450, 227);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(new MigLayout("", "[][grow]", "[25][25][25][25][25][][25]"));
		
		JLabel lblMNhmHng = new JLabel("Tên Hàng Hóa: ");
		contentPane.add(lblMNhmHng, "cell 0 0,alignx trailing");
		
		textField = new JTextField();
		contentPane.add(textField, "cell 1 0,growx");
		textField.setColumns(10);
		
		JLabel lblMNhmHng_1 = new JLabel("Nhóm Hàng: ");
		contentPane.add(lblMNhmHng_1, "cell 0 1,alignx trailing");
		
		comboBox_1 = new JComboBox();
		contentPane.add(comboBox_1, "cell 1 1,alignx left");
		
		lblNewLabel = new JLabel("Đơn Vị Tính: ");
		contentPane.add(lblNewLabel, "cell 0 2,alignx trailing");
		
		textField_2 = new JTextField();
		contentPane.add(textField_2, "cell 1 2");
		textField_2.setColumns(10);
		
		JLabel lblnVTnh = new JLabel("Mã Hàng Hóa: ");
		contentPane.add(lblnVTnh, "cell 0 3,alignx trailing");
		
		textField_1 = new JTextField();
		contentPane.add(textField_1, "cell 1 3");
		textField_1.setColumns(10);
		
		lblGiMuaVo = new JLabel("Giá Mua Vào: ");
		contentPane.add(lblGiMuaVo, "cell 0 4,alignx trailing");
		
		textField_3 = new JTextField();
		contentPane.add(textField_3, "flowx,cell 1 4");
		textField_3.setColumns(10);
		
		lblGiBnRa = new JLabel("Giá Bán Ra: ");
		contentPane.add(lblGiBnRa, "cell 0 5,alignx trailing");
		
		textField_4 = new JTextField();
		contentPane.add(textField_4, "flowx,cell 1 5");
		textField_4.setColumns(10);
		
		btnNewButton = new JButton("OK");
		btnNewButton.setHorizontalAlignment(SwingConstants.RIGHT);
		contentPane.add(btnNewButton, "flowx,cell 1 6,alignx right");
		
		btnNewButton_1 = new JButton("CanCel");
		btnNewButton_1.setHorizontalAlignment(SwingConstants.RIGHT);
		contentPane.add(btnNewButton_1, "cell 1 6,alignx right");
		
		lblNewLabel_1 = new JLabel("VND");
		contentPane.add(lblNewLabel_1, "cell 1 4");
		
		lblNewLabel_2 = new JLabel("VND");
		contentPane.add(lblNewLabel_2, "cell 1 5");
	}

}
